package com.zy.xuanwo.acitivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.zy.xuanwo.R;
import com.zy.xuanwo.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import de.hdodenhof.circleimageview.CircleImageView;

/**
 * 情景模式
 * Created by njb on 2016/7/15.
 */
public class ProfileActivity extends AppCompatActivity {

    @Bind(R.id.title_layout)
    TitleView titleLayout;
    @Bind(R.id.casual_mode_iv)
    CircleImageView casualModeIv;
    @Bind(R.id.casual_mode_tv)
    TextView casualModeTv;
    @Bind(R.id.toggle_casual_mode_iv)
    ImageView toggleCasualModeIv;
    @Bind(R.id.casual_mode_rl)
    RelativeLayout casualModeRl;
    @Bind(R.id.casual_mode_view)
    View casualModeView;
    @Bind(R.id.home_mode_iv)
    CircleImageView homeModeIv;
    @Bind(R.id.home_mode_tv)
    TextView homeModeTv;
    @Bind(R.id.home_mode_tg_iv)
    ImageView homeModeTgIv;
    @Bind(R.id.home_mode_rl)
    RelativeLayout homeModeRl;
    @Bind(R.id.left_sliding_menu_iv)
    ImageView mBack;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_profiles);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.casual_mode_rl, R.id.home_mode_rl,R.id.left_sliding_menu_iv})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.casual_mode_rl:
                startActivity(new Intent(ProfileActivity.this,CasualModeActivity.class));
                this.finish();
                break;
            case R.id.home_mode_rl:
                startActivity(new Intent(ProfileActivity.this,HomeModeActivity.class));
                this.finish();
                break;
            case R.id.left_sliding_menu_iv:
                this.finish();
                break;
            default:
                break;
        }
    }
}
